$(function () {
    $("#bootstrapTable").bootstrapTable({
        url: "/admin/views/user/list.do",
        striped: true,//是否显示行的间隔
        pageNumber: 1,//初始化加载第几页
        pagination: true,//是否分页
        sidePagination: 'server',
        pageSize: 5,
        pageList: [5, 10, 20],
        showRefresh: true,
        queryParams: function (params) {
            return {
                offset: params.offset,
                pageNumber: params.limit
            };
        },
        columns: [
            {
                title: "编号",
                field: "id",
                sortable: false
            },
            {
                title: "昵称",
                field: "name",
                sortable: false
            },
            {
                title: "手机号码",
                field: "phone",
                sortable: false
            },
            {
                title: "密码",
                field: "password",
                sortable: false
            },
            {
                title: "邮箱",
                field: "email",
                sortable: false
            },
            {
                title: "注册时间",
                field: "regtime",
                sortable: false
            },
            {
                title: "上次登陆时间",
                field: "logintime",
                sortable: false
            }
        ]
    });
});